<?php

class Logger {
    static function error($msg){
        Buffer::Add('LOGGER_ERROR', "<div class='logger_error'>".$msg."</div>");
    }
    
    static function GetErrors(){
        return Buffer::Get('LOGGER_ERROR');
    }
    
    static function message($msg){
        Buffer::Add('LOGGER_MESSAGE', "<div class='logger_message'>".$msg."</div>");
    }
    
    static function GetMessages(){
        return Buffer::Get('LOGGER_MESSAGE');
    }
}
